import { tbfdmenu } from '../../../atoms/db';

export default async function getallmenues() {
	const d = await tbfdmenu()
		.select('*')
		// .whereNull('pid')
		.orderBy('pid', 'asc')
		.orderBy('weight', 'desc')
		.orderBy('name', 'asc');
	return d.map((it) => {
		return {
			...it
		};
	});
}
